package net.angrynut.web.handler.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

import net.angrynut.web.handler.view.DemoXlsView;

/**
 * 演示一个 xls 视图。
 */
@Controller
public class DemoXlsViewController {

	@GetMapping("/demo/xlsview")
	public ModelAndView xlsview() {
		ModelAndView mav = new ModelAndView();
		mav.addObject("sheetName", "ASheet");
		mav.setView(new DemoXlsView());
		return mav;
	}
}
